//
//  ItemsDetailViewController.m
//  Dsgfds
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 胡泉. All rights reserved.
//

#import "ItemsDetailViewController.h"

@interface ItemsDetailViewController ()

@property (nonatomic, strong) UIWebView *webView;

@end

@implementation ItemsDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_model.access_url] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:15]];
    [self.view addSubview:_webView];
    // 更改状态栏颜色
//    [self preferredStatusBarStyle];
    // Do any additional setup after loading the view.
}

//-(UIStatusBarStyle)preferredStatusBarStyle
//{
//    return UIStatusBarStyleLightContent;
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
